<template>
    <uni-load-more  :status="loadingStatus"></uni-load-more>
  
</template>

<script setup>

import { computed, ref, watch } from "vue";

const props = defineProps({
  status:{
    type:Number,
    default: 0
  }
});

const statusTypes = ref([
  {
    value: "more",
    text: "加载前",
  },
  {
    value: "loading",
    text: "加载中",
  },
  {
    value: "noMore",
    text: "没有更多",
  },
]);
const loadingStatus = computed(() => {
  return statusTypes.value[props.status].value;
});
</script>

<style lang="scss"></style>
